function msg(){
	var a=arguments;	
	var str = "窗口：" + api.winName + "\n";
	str += "子窗口:" + api.frameName + "\n";
	for(var i in a){
		str+=i+"="+JSON.stringify(a[i])+" ";
	}	
	alert(str);
}

function log(){
	var a=arguments;
	var str="";
	for(var i in a){
		str+=i+"="+JSON.stringify(a[i])+" ";
	}	
	console.log(str);
}